package com.qf.test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.test.pojo.DtsAdmin;
import com.qf.test.vo.CatVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 管理员表 Mapper 接口
 * </p>
 *
 * @author zhaojian
 * @since 2021-05-12
 */
public interface DtsAdminMapper extends BaseMapper<DtsAdmin> {

    /**
     * 查询所有的管理员用户
     *
     */
    @Select("SELECT id as `value` , username as label from dts_admin admin where deleted=0")
    public List<CatVo> findall();
}
